(Fformat_time_string): Use make_unibyte_string to make
authorKenichi Handa <handa@m17n.org>
Wed, 6 Sep 2006 06:40:52 +0000 (06:40 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 6 Sep 2006 06:40:52 +0000 (06:40 +0000)
a Lisp string from the result of emacs_memftimeu call.

src/editfns.c

index 2c392df564e4d3b9eddc736967f3657c01508bf4..1b89bb3668c6458c155eb3ed58c43d14b1ec41f3 100644 (file)
@@ -1694,7 +1694,7 @@ For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z".  */)
                                SBYTES (format_string),
                                tm, ut);
       if ((result > 0 && result < size) || (result == 0 && buf[0] == '\0'))
-       return code_convert_string_norecord (make_string (buf, result),
+       return code_convert_string_norecord (make_unibyte_string (buf, result),
                                             Vlocale_coding_system, 0);
 
       /* If buffer was too small, make it bigger and try again.  */